﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChiTietTinRaoVat.aspx.cs"
    Inherits="ChiTietTinRaoVat" MasterPageFile="~/Masterpage/Sub_NoRight.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="maincontent1" runat="Server">
    <div class="newsbox_noleft">
        <div class="newsbox_noleft_header">
            <h4>
                <asp:Label ID="txtTenTinRaoVat" runat="server" Font-Size="Large"></asp:Label></h4>
        </div>
        <div class="newsbox_noleft_content">
          
            <asp:Panel ID="pnlNoiDung" runat="server" >
                <div style="padding: 10px; color: #FFFFFF; font-size: larger; ">
                <table cellspacing="2" cellpadding="2" width="100%" >
                	<tr>
                		<td>
               
                    <table class="style1"  bgcolor="#7D7D7D" style="border-width: 2px; color: #FFFFFF; left: 0px;
                        position: relative; right: 0px; top: 0px; width: 700px;" >
                        <tr>
                            <td></td>
                                <td></td>
                                <td></td>
                                <td  colspan="2" style="height: 30px; font-size: small; color: #FFFFFF;font-weight: bold;" align="right">
                               <font style="font-size: x-small"> Thời gian đăng:  <asp:Label ID="txtThoiGianDang" runat="server"></asp:Label></font></td>
                        </tr>
                        <tr>
                        <td>
                            <hr noshade="noshade"  size="2" style="background-color: #000000" />
                        </td>
                        </tr>
                        <tr>
                            <td class="style2" align="right" style="font-size: x-small">
                              
                            </td>
                            <td>Người đăng:
                            </td>
                            <td class="style13">
                               <h4><asp:HyperLink ID="hplTenNguoiDung" runat="server" 
                                       Font-Bold="True" Font-Size="Large"
                                    ForeColor="White">User</asp:HyperLink></h4>
                            </td>
                            <td >
                            <asp:Label ID="txtLoaiNguoiDung" runat="server"></asp:Label> 
                            </td>

                            <td align="right">
                              <font style="font-size: x-small"> Tham gia ngày:
                                <asp:Label ID="txtNgayThamGia" runat="server"></asp:Label></font>
                               
                            </td>
                        </tr>
                    



                       <tr>
                       <td colspan="4"><br /> </td>
                       </tr>
                    </table>
                   </td>
                	</tr>
                	<tr><td>
                    <table class="style14" width="700px" style="color: #000000">
                       
                        <tr>
                            <td class="style15" style="width: 177px">
                             <asp:HyperLink ID="HyperLink1" runat="server" CssClass="jqzoom">
                                <asp:Image ID="imgSanPham" runat="server" Width="150" Height="150" />
                                </asp:HyperLink>
                            </td>
                            <td colspan="3" width="448" style="width: 420px; position: relative; left: 10px; bottom: 10px; right: 10px; top: 10px" valign="top">
                            <div width="448" style="position: relative; top: 0px">
                            <asp:Literal ID="ltlNoiDungBaiDang" runat="server"></asp:Literal>
                            </div>
                                
                            </td>
                        </tr>
                    </table>
                    </td>
                    </tr>
                    <tr><td>
                    <table class="style1" width="625px" style="color: #000000">
                        <tr>
                            <td class="style20">
                                Điểm bình chọn TB
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtDiemBinhChonTB" runat="server" Width="83px" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style11">
                                Bình chọn
                            </td>
                            <td class="style12">
                                <asp:RadioButton ID="RbtnBinhChon1" runat="server" GroupName="RadioBnt" Text="1" />
                                <asp:RadioButton ID="RbtnBinhChon2" runat="server" GroupName="RadioBnt" Text="2" />
                                <asp:RadioButton ID="RbtnBinhChon3" runat="server" GroupName="RadioBnt" Text="3" />
                                <asp:RadioButton ID="RbtnBinhChon4" runat="server" GroupName="RadioBnt" Text="4" />
                                <asp:RadioButton ID="RbtnBinhChon5" runat="server" GroupName="RadioBnt" Text="5" />
                            </td>
                            <td class="style17">
                                <asp:Button ID="btnBinhChon" runat="server" Text="Bình chọn" CssClass="exclusive"
                                    OnClick="btnBinhChon_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnChinhSuaBaiDang" runat="server" Text="Chỉnh sửa bài" CssClass="exclusive"
                                    OnClick="btnChinhSuaBaiDang_Click" />
                            </td>
                            <td colspan="2">
                                <asp:Button ID="btnBaoCaoViPham" runat="server" Font-Bold="True" ForeColor="Blue"
                                    OnClick="btnBaoCaoViPham_Click" Text="Báo cáo vi phạm" CssClass="exclusive" />
                            </td>
                            <td class="style12">
                                <div style="color: Red; width: 150px;">
                                    <asp:Label ID="lblThongBao" runat="server" Text="Vui lòng đăng nhập" Visible="False"></asp:Label></div>
                            </td>
                            <td>
                                <asp:Button ID="btnTraLoi" runat="server" Text="Trả Lời" OnClick="btnTraLoi_Click"
                                    CssClass="exclusive" />
                            </td>
                        </tr>
                    </table>
                    </td></tr>
                    <tr><td>
               
                    <cc1:Editor ID="CKChinhSuaBaiDang" runat="server" Visible="False" Width="625px" Height="400" />
                   
                    <center>
                        <asp:Button ID="btnSuaBaiDang" runat="server" Text="Sửa bài đăng" OnClick="btnSuaBaiDang_Click"
                            Visible="False" /></center>
                    <br />
                    </td></tr>
                    </table>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="700px"
                        OnRowDataBound="GridView1_RowDataBound" Height="135px" CellPadding="2" ForeColor="#333333"
                        GridLines="None" AllowPaging="True" PageSize="5" OnPageIndexChanging="GridView1_PageIndexChanging">
                        <RowStyle BackColor="#CCCCCC" />
                        <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <Columns>
                            <asp:TemplateField HeaderText="Tên người dùng">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hplTenNguoiDung1" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Nội Dung Trả Lời">
                                <ItemTemplate>
                                    <asp:Literal ID="Literal2" runat="server" Text='<%# Bind("NoiDungTraLoi") %>'></asp:Literal>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NoiDungTraLoi") %>'></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ThoiGianTraLoi" HeaderText="Thời Gian Trả Lời" SortExpression="SoLanXem">
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <EmptyDataTemplate>
                            Không có bài trả lời cho tin rao vặt này
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                   <div>
                    <cc1:Editor ID="CKEditor1" runat="server" Width="625px"  Height="400" Visible="False" /> 
                    </div>
                </div>
                <center>
                    
                    <asp:Button ID="btnDangBaiTraLoi" runat="server" Text="Đăng bài trả lời" OnClick="btnDangBaiTraLoi_Click"
                        Visible="False" />
                        </center>
            </asp:Panel>
            <asp:Panel ID="pnlBaoLoi" runat="Server">
                <asp:Label ID="lblBaoLoi" runat="Server" Text="Bài rao vặt không tồn tại"></asp:Label>
            </asp:Panel>
</asp:Content>
